package com.atguigu.gmall.order.mapper;

import com.atguigu.gmall.order.model.OrderInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import org.junit.jupiter.api.Order;

public interface OrderInfoMapper extends BaseMapper<OrderInfo> {
    /**
     * 分页查询订单 以及 订单项
     * @param orderPage
     * @param userId
     * @param status
     * @return
     */
    IPage<Order> getOrder(IPage<Order> orderPage, @Param("userId") String userId,@Param("status") String status);
}
